package main

import (
	"grs-report-admin/router"
	"log"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	g := r.Group("/api")
	router.RegisterDataSourceRouter(g)
	router.RegisterDataSetRouter(g)
	router.RegisterSqlRouter(g)

	if err := r.Run(":8080"); err != nil {
		log.Println("程序运行：http://localhost:8080")
	}
}
